<div class="row" id="cadastro">
	<div class="span12">
		<form action="add" method="post" id="Usuario" class="form-horizontal">
			<fieldset>
				<legend>Dados Pessoais</legend>
				<div class="control-group">
					<label class="control-label"for="nome">Nome</label>
					<div class="controls">
						<input class="input-xlarge" id="UsuarioNome" name="data[Usuario][nome]" />
					</div>
				</div>
				<div class="control-group">
					<label class="control-label"for="apelido">Apelido</label>
					<div class="controls">
						<input class="input-xlarge" id="UsuarioApelido" name="data[Usuario][Apelido]" />
					</div>
				</div>
				<div class="control-group">
					<label class="control-label"for="email">Email</label>
					<div class="controls">
						<input class="input-xlarge" id="UsuarioEmail" name="data[Usuario][email]" />
					</div>
				</div>
			</fieldset>
			<fieldset>
				<legend>Dados de acesso</legend>
				<div class="control-group">
					<label class="control-label"for="apelido">Login</label>
					<div class="controls">
						<input class="input-xlarge" id="UsuarioLogin" name="data[Usuario][login]" />
					</div>
				</div>
				<div class="control-group">
					<label class="control-label"for="senha">Senha</label>
					<div class="controls">
						<input type="password" class="input-xlarge" id="UsuarioSenha" name="data[Usuario][senha]" />
					</div>
				</div>
			</fieldset>
			<fieldset>
				<legend>Perfil de Participação</legend>
				<div class="control-group">
					<div class="controls">
						<?php foreach($perfis['Seguranca'] as $perfil): ?>
						<label class="checkbox">
							<input type="checkbox" value="<?php echo $perfil['id'] ?>" name="data[Usuario][perfil][]">
							<?php echo $perfil['seguranca_exibicao'] ?>
						</label>
						<?php endforeach; ?>
					</div>
				</div>
			</fieldset>
				<div class="form-actions">
					<input class="btn btn-primary" type="submit" value="Enviar" /> &nbsp;
					<button type="reset" class="btn">Limpar</button>
				</div>
			</fieldset>
		</form>
	</div>
</div>

<?php echo $this->Html->javascript('jquery-1.7.1.min.js') ?>
<?php echo $this->Html->javascript('jquery-validation-1.9.0/jquery.validate.js') ?>
<?php echo $this->Html->javascript('usuario.valida.js') ?>
